<?php
defined('BASEPATH') or exit('No direct script access allowed');

/**
 * 网站设置
 */

//公司信息
$config['company_info'] = array(
    'short_name' => '穿透科技',
    'full_name' => '北京市穿透科技有限公司',
    'domain' => 'natforum.com',
    'home_url' => 'http://natforum.com/',
);

//网站信息
$config['site_info'] = array(
    'version' => '0.1.2.20170108_base',
    'domain' => 'natforum.com',
    'home_url' => 'http://natforum.com/',
    'id' => 'natforum',
    'name' => 'natForum',
    'brief' => '网络穿透交流社区',
    'meta' => array(
        'description' => '网络穿透交流社区，ngrok，frp，端口映射，端口转发，内网穿透。',
        'keywords' => 'ngrok frp 端口映射 端口转发 内网穿透',
    ),
    'icp' => array(
        'num' => '穿ICP备050607089号',
        'link' => 'http://www.miitbeian.gov.cn/',
    ),
    'tongji' => '<span style="display: none;">统计代码</span>',
);

//一些文件地址,方便统一修改引用（不需要改动）
$config['files'] = array(
    'web' => array(
        'common.js' => '/static/js/common.min.js',
        'jquery.js' => '/static/lib/jquery/jquery-3.1.0.min.js',
        'nprogress.css' => '/static/lib/nprogress/nprogress.min.css',
        'plupload.js' => '/static/lib/plupload/plupload.full.min.js',
        'qiniu.js' => '/static/lib/qiniu/qiniu.min.js',
        'file_progress.js' => '/static/lib/qiniu/file_progress.js',
        'nprogress.js' => '/static/lib/nprogress/nprogress.min.js',
        'pjax.js' => '/static/lib/pjax/pjax.min.js',
        'highlight.js' => '/static/lib/highlight/highlight.min.js',
        'highlight.css' => '/static/lib/highlight/monokai-sublime.min.css',

        'admin_common.css' => '/static/admin/css/common.min.css',
        'admin_common.js' => '/static/admin/js/common.min.js',
        'amazeui.css' => '/static/lib/amazeui/css/amazeui.min.css',
        'amazeui.js' => '/static/lib/amazeui/js/amazeui.min.js',
        'layer.js' => '/static/lib/layer/layer.min.js',
        'zeroclipboard.js' => '/static/lib/zeroclipboard/ZeroClipboard.min.js',
    ),
);

//登录设置
$config['remember_me_time'] = 365 * 24 * 60 * 60;

//枚举显示（不需要改动）
$config['enum_show'] = array(
    //性别
    'gender' => array(
        'n' => '保密',
        'f' => '女',
        'm' => '男',
    ),
    //性别(第三人称)
    'gender3' => array(
        'n' => 'Ta',
        'f' => '她',
        'm' => '他',
    ),
    //文章类型
    'article_type' => array(
        1 => 'q',
        2 => 'discuss',
        3 => 'news',
    ),
    //文章类型
    'article_type_text' => array(
        1 => '问答',
        2 => '讨论',
        3 => '头条',
    ),
);

//邮箱设置
$config['email'] = array(
    'CharSet' => 'utf-8',
    'SMTPDebug' => 0,
    //如果是qq邮箱，只支持加密发送邮件，所以请填写'tls'，其它不需加密发送邮件的请留空即可
    'SMTPSecure' => '',
    'Host' => 'SMTP地址，如smtp.qq.com',
    //端口，端口一般为25，SMTPSecure为tls时端口一般为587，具体是多少请咨询SMTP供应商
    'Port' => 25,
    //注意！Username和From中的发件人来源地址要保持一致
    'Username' => '邮箱账号，如123456@qq.com',
    'Password' => '邮箱密码，如果是QQ邮箱，现在已使用了授权码，请到QQ邮箱账号设置里生成授权码',
    'From' => array('发件人来源地址，如123456@qq.com', '发件人来源名称，如no-reply'),
);

//加密使用的key，一定要32位，不能多也不能少，主要用来生成邮件验证或者找回密码时的url加密参数
$config['encrypt_key'] = '34e1027e6ac225c8876e15e408f753ec';

//md5加密使用的salt，最好是32位，主要用来存储加密的密码
$config['salt'] = 'a34e1027e6ac225c8876e15e408f753ec';

//账号相关
$config['account'] = array(
    //邮箱验证链接超时时间(单位小时)
    'email_link_timeout' => 24,
);

//Github登录配置
$config['github'] = array(
    'client_id' => '04a2c7d45c1a0741ec23',
    'client_secret' => 'c0a1e22196c48cf85d9a7ecccad9063a5d1624e5',
    'redirect_uri' => 'http://natforum.com' . $config['site_info']['domain'] . '/account/github_callback',
);

//微信登录配置
$config['weixin'] = array(
    'appid' => '',
    'secret' => '',
    'redirect_uri' => 'http://' . $config['site_info']['domain'] . '/account/weixin_callback',
);

//QQ登录配置
$config['qc'] = array(
    'appid' => '',
    'appkey' => '',
    'callback' => 'http://' . $config['site_info']['domain'] . '/account/qc_callback',
);

//微博登录配置
$config['weibo'] = array(
    'WB_AKEY' => '',
    'WB_SKEY' => '',
    'WB_CALLBACK_URL' => 'http://' . $config['site_info']['domain'] . '/account/weibo_callback',
);

//oschina登录配置
$config['oschina'] = array(
    'client_id' => '',
    'client_secret' => '',
    'redirect_uri' => 'http://natforum.com' . $config['site_info']['domain'] . '/account/oschina_callback',
);

//Geetest配置，账号申请地址 http://www.geetest.com/
$config['geetest'] = array(
    'open' => false,
    'CAPTCHA_ID' => '',
    'PRIVATE_KEY' => '',
    'MOBILE_CAPTCHA_ID' => '',
    'MOBILE_PRIVATE_KEY' => '',
);

//七牛配置，账号申请地址 https://portal.qiniu.com/signup?code=3ln7n97luobiq
$config['qiniu'] = array(
    'accessKey' => 'BL9kJqLRpDObI3rT-aSmPPXfKCQ3J-C8Yoo96TvS',
    'secretKey' => '3-Z5A6WPGP0AxIC481TvHw55nzreg_49p7J6FB2k',
    //公有空间,bucket名称
    'static_bucket_name' => 'natforum',
    //bucket对应的域名
    'static_bucket_domain' => 'ojvsxq75e.bkt.clouddn.com',
    //文件分隔符,用来模拟文件目录（不需要改动）
    'delimiter' => '/',
);

//头像根链接（不需要改动）
$config['avatar_base_url'] = 'http://' . $config['qiniu']['static_bucket_domain'] . '/avatar/';

//话题导航
$config['topic_navs'] = array(
    '技术',
    '创意',
    '好玩',
    '招聘',
    '交易',
    '创业',
    'ngrok',
    'frp',
    '花生壳',
    'nat123',
    'p2p',
    'n2n',
    'tcp',
    'udp',
    '端口映射',
    '端口转发',
    'socks',
    'upnp',
    'ddns',
    '内网穿透',
    'tunnel',
    'proxy',
    'IP Address',
    'ipv4',
    'ipv6',
    'telnet'
);

//友情链接
$config['friendslink_lists'] = array(
    array('Ittun', 'http://www.ittun.com/'),
    array('糖果科技', 'http://qydev.org/'),
    array('动酷网络', 'http://ngrok.2bdata.com/'),
    array('网络通', 'http://www.dkys.org/'),
);
